import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:p_location/map/jaguar_demo.dart';
import 'package:p_location/map/res/search_person_detail.dart';

class NavigatorUtil {
  ///跳转到指定页面
  static push(BuildContext context, Widget page) {
    Navigator.push(context, MaterialPageRoute(builder: (context) => page));
  }

  static jumpToLocationPage(BuildContext context){
    push(context, GisMapPage());
  }

  static jumpToLocationPageWithTarget(BuildContext context,SearchPersonDetail detail){
    push(context, GisMapPage(realTrackTarget: detail,));
  }
}
